package com.flin.icesilkworm.examination.course.constant;

import com.flin.icesilkworm.examination.gen.course.constant.GeneratedCourseProjectsConstant;
import com.flin.icesilkworm.framework.jdbc.objects.StringAttribute;

import java.util.Map;
/**
 *
 *
 *
 */
public interface ICourseProjectsConstant extends GeneratedCourseProjectsConstant{

	public static String getText(String key, String status) {
		
		Map<String,String> textMap = OPTION_MAPS.get(key);
		
		if(textMap == null){return key + "." + status;}
		
		return textMap.get(status);
	}	
	

	/**
	 * @Desc:查询所有属性和字段
	 */
	public final StringAttribute [] SIMPLE_ATTRIBUTES = {
		PRO_ID, PRO_NAME, PRO_DESC, PRO_PIC, 
		AS_STOP, AS_TOP, COUR_TEACH_ID,  
		GROUP_IDS, DUTY_IDS, CATE_ID, C_DELETED, 
		LASTED_UPD_BY, LASTED_UPD_AT, LASTED_UPD_MAN, CREATED_BY, 
		CREATED_AT, CREATED_MAN, C_VERSION, 
	};

}
